package com.yilin.tms.core.entity.user.technical;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yilin.tms.core.commons.base.BaseEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

@Entity
@Table(name = "user_technical_fee_rule")
@TableName("user_technical_fee_rule")
public class TechnicalFeeRule extends BaseEntity {

    @Column(name = "mathematics", nullable = false)
    private int mathematics;//唯一数字标识
    @Column(name = "str_value")
    private String strValue;//说明
    @Column(name = "status")
    private boolean status; //启用
    @Column(name = "price_upper_limit")
    private Double priceUpperLimit; //条件最大值 百分比
    @Column(name = "price_lower_limit")
    private Double priceLowerLimit; //条件最小值 百分比

    @Transient
    @TableField(exist = false)
    private List<TechnicalFeeRuleItem> ruleItems; //规则项


    public int getMathematics() {
        return mathematics;
    }

    public void setMathematics(int mathematics) {
        this.mathematics = mathematics;
    }

    public String getStrValue() {
        return strValue;
    }

    public void setStrValue(String strValue) {
        this.strValue = strValue;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public Double getPriceUpperLimit() {
        return priceUpperLimit;
    }

    public void setPriceUpperLimit(Double priceUpperLimit) {
        this.priceUpperLimit = priceUpperLimit;
    }

    public Double getPriceLowerLimit() {
        return priceLowerLimit;
    }

    public void setPriceLowerLimit(Double priceLowerLimit) {
        this.priceLowerLimit = priceLowerLimit;
    }

    public List<TechnicalFeeRuleItem> getRuleItems() {
        return ruleItems;
    }

    public void setRuleItems(List<TechnicalFeeRuleItem> ruleItems) {
        this.ruleItems = ruleItems;
    }
}
